package com.zenagro.domain.zenagro;

import javax.persistence.*;

import org.openxava.annotations.*;

import com.zenagro.domain.zenagro.base.*;

@View(name="reference", members="nombre")
@Entity
@Table(name="fertilizante")
public class Fertilizante extends Identificable {
 
	@Required
	@Column(name="nombre", unique=true)
	private String nombre;
	
	@Required
	@Column(name="n_total")
	private double ntotal;
	
	@Required
	@Column(name="n_no3")
	private double nNo3;
	
	@Required
	@Column(name="n_nh4")
	private double nNh4;
	
	@Required
	@Column(name="n_ureico")
	private double nUreico;
	
	@Required
	@Column(name="p2o5")
	private double p2o5;
	
	@Required
	@Column(name="k2o")
	private double k2o;
	
	@Required
	@Column(name="CaO")
	private double cao;
	
	@Required
	@Column(name="MgO")
	private double mgo;
	
	@Required
	@Column(name="cl")
	private double cl;
	
	@Required
	@Column(name="so4")
	private double so4;
	
	@Required
	@Column(name="na")
	private double na;
	
	@Required
	@Column(name="ph")
	private double ph;
	
	@Required
	@Column(name="temp")
	private double temp;
	
	@Required
	@Column(name="densidad")
	private double densidad;

	public double getNtotal() {
		return ntotal;
	}

	public void setNtotal(double ntotal) {
		this.ntotal = ntotal;
	}

	public double getnNo3() {
		return nNo3;
	}

	public void setnNo3(double nNo3) {
		this.nNo3 = nNo3;
	}

	public double getnNh4() {
		return nNh4;
	}

	public void setnNh4(double nNh4) {
		this.nNh4 = nNh4;
	}

	public double getnUreico() {
		return nUreico;
	}

	public void setnUreico(double nUreico) {
		this.nUreico = nUreico;
	}

	public double getP2o5() {
		return p2o5;
	}

	public void setP2o5(double p2o5) {
		this.p2o5 = p2o5;
	}

	public double getK2o() {
		return k2o;
	}

	public void setK2o(double k2o) {
		this.k2o = k2o;
	}

	public double getCao() {
		return cao;
	}

	public void setCao(double cao) {
		this.cao = cao;
	}

	public double getMgo() {
		return mgo;
	}

	public void setMgo(double mgo) {
		this.mgo = mgo;
	}

	public double getCl() {
		return cl;
	}

	public void setCl(double cl) {
		this.cl = cl;
	}

	public double getSo4() {
		return so4;
	}

	public void setSo4(double so4) {
		this.so4 = so4;
	}

	public double getNa() {
		return na;
	}

	public void setNa(double na) {
		this.na = na;
	}

	public double getPh() {
		return ph;
	}

	public void setPh(double ph) {
		this.ph = ph;
	}

	public double getTemp() {
		return temp;
	}

	public void setTemp(double temp) {
		this.temp = temp;
	}

	public double getDensidad() {
		return densidad;
	}

	public void setDensidad(double densidad) {
		this.densidad = densidad;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	
	
}
